home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / C++ AppleLink Messages / AppleLink Files - 6⁄29⁄90 / re[1] walking the inheritance < prev    next >
Encoding:
Text File  |  1990-06-29  |  1.3 KB  |  33 lines  |  [TEXT/GEOL]

  1. Item    7712105                         27-June-90        13:24PDT
  2.  
  3. From:   MM.XOBJ                         MacroMind, Haim Zamir,PRT
  4.  
  5. To:     D2605                           Xanadu Operating,Marc Stiegler,PRT
  6.  
  7. cc:     CPLUS.DEV$                      C++ Interest List--Developers
  8.  
  9. Sub:    re[1] walking the inheritance
  10.  
  11.  
  12. Marc,
  13.  
  14. Thank you for your suggestions.  The macro concept you refer to has occurred to
  15. me.  Could you send me a simple example of how it works?
  16.  
  17. In your link you neither confirmed nor denied the existance of inheritance
  18. chain information at runtime.  It obviously isn't necessary for vtables.  But
  19. is it used for an implementation of "new?"  My understanding of constructors is
  20. that an object as it is initialized physically evolves from its root class to
  21. its destination, changing vtable references as it goes so that virtual
  22. functions are called correctly from within each constructor.  This could either
  23. be done with a piece of core code or could be implemented inline for each
  24. "new."  Do you know which it is?
  25.  
  26. As for adding methods dynamically, the approach you suggest is interesting.
  27. Are you suggesting that I subclass this class with the "value" protocol for
  28. EACH method I wish to attach dynamically?  Also, how would this value method
  29. operate on a class's data, as a "friend?"
  30.  
  31. --Haim Zamir
  32.  
  33.